<%
response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", -1); //prevents caching at the proxy server
%>
<%@page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*,java.text.*"%>
<% int validaSession = 2; %>
<%@ include file="Connections/session.jsp" %>

<%@ include file="Connections/conDB.jsp" %>
<%
String parId_demora = request.getParameter ("id_demora");
String parId_unidad = request.getParameter ("id_unidad");

Driver DriverRs = (Driver)Class.forName(MM_conDB_DRIVER).newInstance();
Connection ConnRs = DriverManager.getConnection(MM_conDB_STRING,MM_conDB_USERNAME,MM_conDB_PASSWORD);
String query ="";
PreparedStatement StatementRs =null;
ResultSet Rsquery = null;
boolean Rsquery_hasData = false;

query= " DELETE demora WHERE id_demora = "+parId_demora;
		//out.print(query);
		StatementRs=ConnRs.prepareStatement(query);
	   	StatementRs.executeUpdate();
	
	out.print("<script>");
	out.print("window.opener.location.reload();");
	out.print("window.close();");
	out.print("</script>");

ConnRs.close();


%>




<html>
<head>
<title>CIMA-Eliminar Demora</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="miestilo.css" type="text/css">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<center>
<br>
  <table width="250" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td align="center">la Demora a sido eliminada.</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td align="center"> 
        <input type="button" name="Button" value="Aceptar" class="boton" onClick="window.opener.location.reload();window.close()">
      </td>
    </tr>
  </table>
</center>
</body>
</html>
